<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::gpu::DeviceArray&lt; T &gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1gpu_1_1_device_array.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="classpcl_1_1gpu_1_1_device_array-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::gpu::DeviceArray&lt; T &gt; 模板类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><b><a class="el" href="classpcl_1_1gpu_1_1_device_array.html" title="DeviceArray class">DeviceArray</a></b> class  
 <a href="classpcl_1_1gpu_1_1_device_array.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="device__array_8h_source.html">device_array.h</a>&gt;</code></p>
<div class="dynheader">
类 pcl::gpu::DeviceArray&lt; T &gt; 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classpcl_1_1gpu_1_1_device_array.png" usemap="#pcl::gpu::DeviceArray_3C_20T_20_3E_map" alt=""/>
  <map id="pcl::gpu::DeviceArray_3C_20T_20_3E_map" name="pcl::gpu::DeviceArray_3C_20T_20_3E_map">
<area href="classpcl_1_1gpu_1_1_device_memory.html" title="DeviceMemory class" alt="pcl::gpu::DeviceMemory" shape="rect" coords="0,0,166,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:a9ab80293c313438664d45bff6f402bf9"><td class="memItemLeft" align="right" valign="top"><a id="a9ab80293c313438664d45bff6f402bf9"></a>enum &#160;</td><td class="memItemRight" valign="bottom">{ <b>elem_size</b> = sizeof(T)
 }</td></tr>
<tr class="memdesc:a9ab80293c313438664d45bff6f402bf9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Element size. <br /></td></tr>
<tr class="separator:a9ab80293c313438664d45bff6f402bf9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1d8a78ed8ebb15d1f7d1d80faf62e78"><td class="memItemLeft" align="right" valign="top"><a id="ae1d8a78ed8ebb15d1f7d1d80faf62e78"></a>
typedef T&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array.html#ae1d8a78ed8ebb15d1f7d1d80faf62e78">type</a></td></tr>
<tr class="memdesc:ae1d8a78ed8ebb15d1f7d1d80faf62e78"><td class="mdescLeft">&#160;</td><td class="mdescRight">Element type. <br /></td></tr>
<tr class="separator:ae1d8a78ed8ebb15d1f7d1d80faf62e78"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a0573ce7da4c93785a2329b20d8e78484"><td class="memItemLeft" align="right" valign="top"><a id="a0573ce7da4c93785a2329b20d8e78484"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array.html#a0573ce7da4c93785a2329b20d8e78484">DeviceArray</a> ()</td></tr>
<tr class="memdesc:a0573ce7da4c93785a2329b20d8e78484"><td class="mdescLeft">&#160;</td><td class="mdescRight">Empty constructor. <br /></td></tr>
<tr class="separator:a0573ce7da4c93785a2329b20d8e78484"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af13ad05c8e58f44e64762753862c1439"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array.html#af13ad05c8e58f44e64762753862c1439">DeviceArray</a> (size_t <a class="el" href="classpcl_1_1gpu_1_1_device_array.html#acbd2988863a217bc7159391b9ad960e0">size</a>)</td></tr>
<tr class="memdesc:af13ad05c8e58f44e64762753862c1439"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocates internal buffer in GPU memory  <a href="classpcl_1_1gpu_1_1_device_array.html#af13ad05c8e58f44e64762753862c1439">更多...</a><br /></td></tr>
<tr class="separator:af13ad05c8e58f44e64762753862c1439"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad1b32819f9739f0783229878025459e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array.html#aad1b32819f9739f0783229878025459e">DeviceArray</a> (T *<a class="el" href="classpcl_1_1gpu_1_1_device_array.html#ae74e73c5e09d3bc9f4e35745f8fdefd6">ptr</a>, size_t <a class="el" href="classpcl_1_1gpu_1_1_device_array.html#acbd2988863a217bc7159391b9ad960e0">size</a>)</td></tr>
<tr class="memdesc:aad1b32819f9739f0783229878025459e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes with user allocated buffer. Reference counting is disabled in this case.  <a href="classpcl_1_1gpu_1_1_device_array.html#aad1b32819f9739f0783229878025459e">更多...</a><br /></td></tr>
<tr class="separator:aad1b32819f9739f0783229878025459e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee94d2ab8575b2e1ac9a5647e1c8f889"><td class="memItemLeft" align="right" valign="top"><a id="aee94d2ab8575b2e1ac9a5647e1c8f889"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array.html#aee94d2ab8575b2e1ac9a5647e1c8f889">DeviceArray</a> (const <a class="el" href="classpcl_1_1gpu_1_1_device_array.html">DeviceArray</a> &amp;other)</td></tr>
<tr class="memdesc:aee94d2ab8575b2e1ac9a5647e1c8f889"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor. Just increments reference counter. <br /></td></tr>
<tr class="separator:aee94d2ab8575b2e1ac9a5647e1c8f889"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88c1a90c1ee03617dbfe112eaaae914a"><td class="memItemLeft" align="right" valign="top"><a id="a88c1a90c1ee03617dbfe112eaaae914a"></a>
<a class="el" href="classpcl_1_1gpu_1_1_device_array.html">DeviceArray</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array.html#a88c1a90c1ee03617dbfe112eaaae914a">operator=</a> (const <a class="el" href="classpcl_1_1gpu_1_1_device_array.html">DeviceArray</a> &amp;other)</td></tr>
<tr class="memdesc:a88c1a90c1ee03617dbfe112eaaae914a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assigment operator. Just increments reference counter. <br /></td></tr>
<tr class="separator:a88c1a90c1ee03617dbfe112eaaae914a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4299ebb216c82bc4d17d38b7d5999f67"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array.html#a4299ebb216c82bc4d17d38b7d5999f67">create</a> (size_t <a class="el" href="classpcl_1_1gpu_1_1_device_array.html#acbd2988863a217bc7159391b9ad960e0">size</a>)</td></tr>
<tr class="memdesc:a4299ebb216c82bc4d17d38b7d5999f67"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates it with new size. If new and old sizes are equal it does nothing. <br  />
  <a href="classpcl_1_1gpu_1_1_device_array.html#a4299ebb216c82bc4d17d38b7d5999f67">更多...</a><br /></td></tr>
<tr class="separator:a4299ebb216c82bc4d17d38b7d5999f67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab15724cf2bb42abd87c69a7eb3ec733"><td class="memItemLeft" align="right" valign="top"><a id="aab15724cf2bb42abd87c69a7eb3ec733"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array.html#aab15724cf2bb42abd87c69a7eb3ec733">release</a> ()</td></tr>
<tr class="memdesc:aab15724cf2bb42abd87c69a7eb3ec733"><td class="mdescLeft">&#160;</td><td class="mdescRight">Decrements reference counter and releases internal buffer if needed. <br /></td></tr>
<tr class="separator:aab15724cf2bb42abd87c69a7eb3ec733"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8503cd07a0b5cb1dbd71e2b0e83c9e63"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array.html#a8503cd07a0b5cb1dbd71e2b0e83c9e63">copyTo</a> (<a class="el" href="classpcl_1_1gpu_1_1_device_array.html">DeviceArray</a> &amp;other) const</td></tr>
<tr class="memdesc:a8503cd07a0b5cb1dbd71e2b0e83c9e63"><td class="mdescLeft">&#160;</td><td class="mdescRight">Performs data copying. If destination size differs it will be reallocated.  <a href="classpcl_1_1gpu_1_1_device_array.html#a8503cd07a0b5cb1dbd71e2b0e83c9e63">更多...</a><br /></td></tr>
<tr class="separator:a8503cd07a0b5cb1dbd71e2b0e83c9e63"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c37bf39d8afe561cfb3fcb15fff0a82"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array.html#a2c37bf39d8afe561cfb3fcb15fff0a82">upload</a> (const T *host_ptr, size_t <a class="el" href="classpcl_1_1gpu_1_1_device_array.html#acbd2988863a217bc7159391b9ad960e0">size</a>)</td></tr>
<tr class="memdesc:a2c37bf39d8afe561cfb3fcb15fff0a82"><td class="mdescLeft">&#160;</td><td class="mdescRight">Uploads data to internal buffer in GPU memory. It calls <a class="el" href="classpcl_1_1gpu_1_1_device_array.html#a4299ebb216c82bc4d17d38b7d5999f67" title="Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates...">create()</a> inside to ensure that intenal buffer size is enough.  <a href="classpcl_1_1gpu_1_1_device_array.html#a2c37bf39d8afe561cfb3fcb15fff0a82">更多...</a><br /></td></tr>
<tr class="separator:a2c37bf39d8afe561cfb3fcb15fff0a82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86641905b12549130d92aaf90a85ac87"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array.html#a86641905b12549130d92aaf90a85ac87">download</a> (T *host_ptr) const</td></tr>
<tr class="memdesc:a86641905b12549130d92aaf90a85ac87"><td class="mdescLeft">&#160;</td><td class="mdescRight">Downloads data from internal buffer to CPU memory  <a href="classpcl_1_1gpu_1_1_device_array.html#a86641905b12549130d92aaf90a85ac87">更多...</a><br /></td></tr>
<tr class="separator:a86641905b12549130d92aaf90a85ac87"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc8b351d3617e83cfe081cfcddffab60"><td class="memTemplParams" colspan="2">template&lt;class A &gt; </td></tr>
<tr class="memitem:abc8b351d3617e83cfe081cfcddffab60"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array.html#abc8b351d3617e83cfe081cfcddffab60">upload</a> (const std::vector&lt; T, A &gt; &amp;data)</td></tr>
<tr class="memdesc:abc8b351d3617e83cfe081cfcddffab60"><td class="mdescLeft">&#160;</td><td class="mdescRight">Uploads data to internal buffer in GPU memory. It calls <a class="el" href="classpcl_1_1gpu_1_1_device_array.html#a4299ebb216c82bc4d17d38b7d5999f67" title="Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates...">create()</a> inside to ensure that intenal buffer size is enough.  <a href="classpcl_1_1gpu_1_1_device_array.html#abc8b351d3617e83cfe081cfcddffab60">更多...</a><br /></td></tr>
<tr class="separator:abc8b351d3617e83cfe081cfcddffab60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5055031ead4bb8a87fc0b85fb104ed50"><td class="memTemplParams" colspan="2">template&lt;typename A &gt; </td></tr>
<tr class="memitem:a5055031ead4bb8a87fc0b85fb104ed50"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array.html#a5055031ead4bb8a87fc0b85fb104ed50">download</a> (std::vector&lt; T, A &gt; &amp;data) const</td></tr>
<tr class="memdesc:a5055031ead4bb8a87fc0b85fb104ed50"><td class="mdescLeft">&#160;</td><td class="mdescRight">Downloads data from internal buffer to CPU memory  <a href="classpcl_1_1gpu_1_1_device_array.html#a5055031ead4bb8a87fc0b85fb104ed50">更多...</a><br /></td></tr>
<tr class="separator:a5055031ead4bb8a87fc0b85fb104ed50"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b5e94bc49303dc096acdf74d3b7059a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array.html#a8b5e94bc49303dc096acdf74d3b7059a">swap</a> (<a class="el" href="classpcl_1_1gpu_1_1_device_array.html">DeviceArray</a> &amp;other_arg)</td></tr>
<tr class="memdesc:a8b5e94bc49303dc096acdf74d3b7059a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Performs swap of data pointed with another device array.  <a href="classpcl_1_1gpu_1_1_device_array.html#a8b5e94bc49303dc096acdf74d3b7059a">更多...</a><br /></td></tr>
<tr class="separator:a8b5e94bc49303dc096acdf74d3b7059a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae74e73c5e09d3bc9f4e35745f8fdefd6"><td class="memItemLeft" align="right" valign="top"><a id="ae74e73c5e09d3bc9f4e35745f8fdefd6"></a>
T *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array.html#ae74e73c5e09d3bc9f4e35745f8fdefd6">ptr</a> ()</td></tr>
<tr class="memdesc:ae74e73c5e09d3bc9f4e35745f8fdefd6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns pointer for internal buffer in GPU memory. <br /></td></tr>
<tr class="separator:ae74e73c5e09d3bc9f4e35745f8fdefd6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf2a181dc9c654f57d4ed6eb6f8f0c23"><td class="memItemLeft" align="right" valign="top"><a id="acf2a181dc9c654f57d4ed6eb6f8f0c23"></a>
const T *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array.html#acf2a181dc9c654f57d4ed6eb6f8f0c23">ptr</a> () const</td></tr>
<tr class="memdesc:acf2a181dc9c654f57d4ed6eb6f8f0c23"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns const pointer for internal buffer in GPU memory. <br /></td></tr>
<tr class="separator:acf2a181dc9c654f57d4ed6eb6f8f0c23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a572c62a9e2ba3993152c35d3cfef2e44"><td class="memItemLeft" align="right" valign="top"><a id="a572c62a9e2ba3993152c35d3cfef2e44"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array.html#a572c62a9e2ba3993152c35d3cfef2e44">operator T*</a> ()</td></tr>
<tr class="memdesc:a572c62a9e2ba3993152c35d3cfef2e44"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns pointer for internal buffer in GPU memory. <br /></td></tr>
<tr class="separator:a572c62a9e2ba3993152c35d3cfef2e44"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a028d709af3eec5cfadabdc4a28657273"><td class="memItemLeft" align="right" valign="top"><a id="a028d709af3eec5cfadabdc4a28657273"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array.html#a028d709af3eec5cfadabdc4a28657273">operator const T *</a> () const</td></tr>
<tr class="memdesc:a028d709af3eec5cfadabdc4a28657273"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns const pointer for internal buffer in GPU memory. <br /></td></tr>
<tr class="separator:a028d709af3eec5cfadabdc4a28657273"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acbd2988863a217bc7159391b9ad960e0"><td class="memItemLeft" align="right" valign="top"><a id="acbd2988863a217bc7159391b9ad960e0"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_array.html#acbd2988863a217bc7159391b9ad960e0">size</a> () const</td></tr>
<tr class="memdesc:acbd2988863a217bc7159391b9ad960e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns size in elements. <br /></td></tr>
<tr class="separator:acbd2988863a217bc7159391b9ad960e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classpcl_1_1gpu_1_1_device_memory"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classpcl_1_1gpu_1_1_device_memory')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classpcl_1_1gpu_1_1_device_memory.html">pcl::gpu::DeviceMemory</a></td></tr>
<tr class="memitem:a1715c6703bf020d262f1814245d81049 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memItemLeft" align="right" valign="top"><a id="a1715c6703bf020d262f1814245d81049"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#a1715c6703bf020d262f1814245d81049">DeviceMemory</a> ()</td></tr>
<tr class="memdesc:a1715c6703bf020d262f1814245d81049 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Empty constructor. <br /></td></tr>
<tr class="separator:a1715c6703bf020d262f1814245d81049 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abac3328be69fefb938385f06a85086a6 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memItemLeft" align="right" valign="top"><a id="abac3328be69fefb938385f06a85086a6"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#abac3328be69fefb938385f06a85086a6">~DeviceMemory</a> ()</td></tr>
<tr class="memdesc:abac3328be69fefb938385f06a85086a6 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:abac3328be69fefb938385f06a85086a6 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a78e31d7d93984afb53e3a8cb21277d inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#a5a78e31d7d93984afb53e3a8cb21277d">DeviceMemory</a> (size_t sizeBytes_arg)</td></tr>
<tr class="memdesc:a5a78e31d7d93984afb53e3a8cb21277d inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocates internal buffer in GPU memory  <a href="classpcl_1_1gpu_1_1_device_memory.html#a5a78e31d7d93984afb53e3a8cb21277d">更多...</a><br /></td></tr>
<tr class="separator:a5a78e31d7d93984afb53e3a8cb21277d inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abeca9cda9090616249b6702ac3b72a6a inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#abeca9cda9090616249b6702ac3b72a6a">DeviceMemory</a> (void *ptr_arg, size_t sizeBytes_arg)</td></tr>
<tr class="memdesc:abeca9cda9090616249b6702ac3b72a6a inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes with user allocated buffer. Reference counting is disabled in this case.  <a href="classpcl_1_1gpu_1_1_device_memory.html#abeca9cda9090616249b6702ac3b72a6a">更多...</a><br /></td></tr>
<tr class="separator:abeca9cda9090616249b6702ac3b72a6a inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a75aa409007befdc70b0f4c3cbb9800 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memItemLeft" align="right" valign="top"><a id="a7a75aa409007befdc70b0f4c3cbb9800"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#a7a75aa409007befdc70b0f4c3cbb9800">DeviceMemory</a> (const <a class="el" href="classpcl_1_1gpu_1_1_device_memory.html">DeviceMemory</a> &amp;other_arg)</td></tr>
<tr class="memdesc:a7a75aa409007befdc70b0f4c3cbb9800 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor. Just increments reference counter. <br /></td></tr>
<tr class="separator:a7a75aa409007befdc70b0f4c3cbb9800 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aabaa701031e413b93ac832f95bc3ff08 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memItemLeft" align="right" valign="top"><a id="aabaa701031e413b93ac832f95bc3ff08"></a>
<a class="el" href="classpcl_1_1gpu_1_1_device_memory.html">DeviceMemory</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#aabaa701031e413b93ac832f95bc3ff08">operator=</a> (const <a class="el" href="classpcl_1_1gpu_1_1_device_memory.html">DeviceMemory</a> &amp;other_arg)</td></tr>
<tr class="memdesc:aabaa701031e413b93ac832f95bc3ff08 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Assigment operator. Just increments reference counter. <br /></td></tr>
<tr class="separator:aabaa701031e413b93ac832f95bc3ff08 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a139fb950f850ab013e4cbd1d8c758b62 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#a139fb950f850ab013e4cbd1d8c758b62">create</a> (size_t sizeBytes_arg)</td></tr>
<tr class="memdesc:a139fb950f850ab013e4cbd1d8c758b62 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates it with new size. If new and old sizes are equal it does nothing. <br  />
  <a href="classpcl_1_1gpu_1_1_device_memory.html#a139fb950f850ab013e4cbd1d8c758b62">更多...</a><br /></td></tr>
<tr class="separator:a139fb950f850ab013e4cbd1d8c758b62 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc6efdb6b6a67dec7760509443beffe4 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memItemLeft" align="right" valign="top"><a id="abc6efdb6b6a67dec7760509443beffe4"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#abc6efdb6b6a67dec7760509443beffe4">release</a> ()</td></tr>
<tr class="memdesc:abc6efdb6b6a67dec7760509443beffe4 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Decrements reference counter and releases internal buffer if needed. <br /></td></tr>
<tr class="separator:abc6efdb6b6a67dec7760509443beffe4 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac0093c66cf01a571cd16815e1189c84 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#aac0093c66cf01a571cd16815e1189c84">copyTo</a> (<a class="el" href="classpcl_1_1gpu_1_1_device_memory.html">DeviceMemory</a> &amp;other) const</td></tr>
<tr class="memdesc:aac0093c66cf01a571cd16815e1189c84 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Performs data copying. If destination size differs it will be reallocated.  <a href="classpcl_1_1gpu_1_1_device_memory.html#aac0093c66cf01a571cd16815e1189c84">更多...</a><br /></td></tr>
<tr class="separator:aac0093c66cf01a571cd16815e1189c84 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a6aec629c498c532916994f8188ad61 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#a5a6aec629c498c532916994f8188ad61">upload</a> (const void *host_ptr_arg, size_t sizeBytes_arg)</td></tr>
<tr class="memdesc:a5a6aec629c498c532916994f8188ad61 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Uploads data to internal buffer in GPU memory. It calls <a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#a139fb950f850ab013e4cbd1d8c758b62" title="Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates...">create()</a> inside to ensure that intenal buffer size is enough.  <a href="classpcl_1_1gpu_1_1_device_memory.html#a5a6aec629c498c532916994f8188ad61">更多...</a><br /></td></tr>
<tr class="separator:a5a6aec629c498c532916994f8188ad61 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3dde5e26915ca28d8ce521edf211464 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#ad3dde5e26915ca28d8ce521edf211464">download</a> (void *host_ptr_arg) const</td></tr>
<tr class="memdesc:ad3dde5e26915ca28d8ce521edf211464 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Downloads data from internal buffer to CPU memory  <a href="classpcl_1_1gpu_1_1_device_memory.html#ad3dde5e26915ca28d8ce521edf211464">更多...</a><br /></td></tr>
<tr class="separator:ad3dde5e26915ca28d8ce521edf211464 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70dc06ec14d680c4b97f71575ef6a963 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#a70dc06ec14d680c4b97f71575ef6a963">swap</a> (<a class="el" href="classpcl_1_1gpu_1_1_device_memory.html">DeviceMemory</a> &amp;other_arg)</td></tr>
<tr class="memdesc:a70dc06ec14d680c4b97f71575ef6a963 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Performs swap of data pointed with another device memory.  <a href="classpcl_1_1gpu_1_1_device_memory.html#a70dc06ec14d680c4b97f71575ef6a963">更多...</a><br /></td></tr>
<tr class="separator:a70dc06ec14d680c4b97f71575ef6a963 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeeb31fa13b53927ffb9408ffc345dbfb inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memTemplParams" colspan="2"><a id="aeeb31fa13b53927ffb9408ffc345dbfb"></a>
template&lt;class T &gt; </td></tr>
<tr class="memitem:aeeb31fa13b53927ffb9408ffc345dbfb inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memTemplItemLeft" align="right" valign="top">T *&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#aeeb31fa13b53927ffb9408ffc345dbfb">ptr</a> ()</td></tr>
<tr class="memdesc:aeeb31fa13b53927ffb9408ffc345dbfb inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns pointer for internal buffer in GPU memory. <br /></td></tr>
<tr class="separator:aeeb31fa13b53927ffb9408ffc345dbfb inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acaef5bf06f71c9c7c7553fb7ab4002db inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memTemplParams" colspan="2"><a id="acaef5bf06f71c9c7c7553fb7ab4002db"></a>
template&lt;class T &gt; </td></tr>
<tr class="memitem:acaef5bf06f71c9c7c7553fb7ab4002db inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memTemplItemLeft" align="right" valign="top">const T *&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#acaef5bf06f71c9c7c7553fb7ab4002db">ptr</a> () const</td></tr>
<tr class="memdesc:acaef5bf06f71c9c7c7553fb7ab4002db inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns constant pointer for internal buffer in GPU memory. <br /></td></tr>
<tr class="separator:acaef5bf06f71c9c7c7553fb7ab4002db inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58d4e2b1918f182dbb63d63e4c209746 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memTemplParams" colspan="2"><a id="a58d4e2b1918f182dbb63d63e4c209746"></a>
template&lt;class U &gt; </td></tr>
<tr class="memitem:a58d4e2b1918f182dbb63d63e4c209746 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#a58d4e2b1918f182dbb63d63e4c209746">operator PtrSz&lt; U &gt;</a> () const</td></tr>
<tr class="memdesc:a58d4e2b1918f182dbb63d63e4c209746 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Conversion to <a class="el" href="structpcl_1_1gpu_1_1_ptr_sz.html">PtrSz</a> for passing to kernel functions. <br /></td></tr>
<tr class="separator:a58d4e2b1918f182dbb63d63e4c209746 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade5394dee721d1fe0e51bc0a9ae59e5b inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memItemLeft" align="right" valign="top"><a id="ade5394dee721d1fe0e51bc0a9ae59e5b"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1gpu_1_1_device_memory.html#ade5394dee721d1fe0e51bc0a9ae59e5b">empty</a> () const</td></tr>
<tr class="memdesc:ade5394dee721d1fe0e51bc0a9ae59e5b inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if unallocated otherwise false. <br /></td></tr>
<tr class="separator:ade5394dee721d1fe0e51bc0a9ae59e5b inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afab63ddb97084ebb8818e9a47ee56e99 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memItemLeft" align="right" valign="top"><a id="afab63ddb97084ebb8818e9a47ee56e99"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>sizeBytes</b> () const</td></tr>
<tr class="separator:afab63ddb97084ebb8818e9a47ee56e99 inherit pub_methods_classpcl_1_1gpu_1_1_device_memory"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template&lt;class T&gt;<br />
class pcl::gpu::DeviceArray&lt; T &gt;</h3>

<p><b><a class="el" href="classpcl_1_1gpu_1_1_device_array.html" title="DeviceArray class">DeviceArray</a></b> class </p>
<dl class="section note"><dt>注解</dt><dd>Typed container for GPU memory with reference counting. <br  />
</dd></dl>
<dl class="section author"><dt>作者</dt><dd>Anatoly Baksheev </dd></dl>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="af13ad05c8e58f44e64762753862c1439"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af13ad05c8e58f44e64762753862c1439">&#9670;&nbsp;</a></span>DeviceArray() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpcl_1_1gpu_1_1_device_array.html">pcl::gpu::DeviceArray</a>&lt; T &gt;::<a class="el" href="classpcl_1_1gpu_1_1_device_array.html">DeviceArray</a> </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Allocates internal buffer in GPU memory </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">size</td><td>number of elements to allocate </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;: <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#a1715c6703bf020d262f1814245d81049">DeviceMemory</a>(<a class="code" href="classpcl_1_1gpu_1_1_device_array.html#acbd2988863a217bc7159391b9ad960e0">size</a> * elem_size) {}</div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array_html_acbd2988863a217bc7159391b9ad960e0"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array.html#acbd2988863a217bc7159391b9ad960e0">pcl::gpu::DeviceArray::size</a></div><div class="ttdeci">size_t size() const</div><div class="ttdoc">Returns size in elements.</div><div class="ttdef"><b>Definition:</b> device_array.hpp:66</div></div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_a1715c6703bf020d262f1814245d81049"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#a1715c6703bf020d262f1814245d81049">pcl::gpu::DeviceMemory::DeviceMemory</a></div><div class="ttdeci">DeviceMemory()</div><div class="ttdoc">Empty constructor.</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="aad1b32819f9739f0783229878025459e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad1b32819f9739f0783229878025459e">&#9670;&nbsp;</a></span>DeviceArray() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpcl_1_1gpu_1_1_device_array.html">pcl::gpu::DeviceArray</a>&lt; T &gt;::<a class="el" href="classpcl_1_1gpu_1_1_device_array.html">DeviceArray</a> </td>
          <td>(</td>
          <td class="paramtype">T *&#160;</td>
          <td class="paramname"><em>ptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Initializes with user allocated buffer. Reference counting is disabled in this case. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ptr</td><td>pointer to buffer </td></tr>
    <tr><td class="paramname">size</td><td>elemens number </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;: <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#a1715c6703bf020d262f1814245d81049">DeviceMemory</a>(<a class="code" href="classpcl_1_1gpu_1_1_device_array.html#ae74e73c5e09d3bc9f4e35745f8fdefd6">ptr</a>, <a class="code" href="classpcl_1_1gpu_1_1_device_array.html#acbd2988863a217bc7159391b9ad960e0">size</a> * elem_size) {}</div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array_html_ae74e73c5e09d3bc9f4e35745f8fdefd6"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array.html#ae74e73c5e09d3bc9f4e35745f8fdefd6">pcl::gpu::DeviceArray::ptr</a></div><div class="ttdeci">T * ptr()</div><div class="ttdoc">Returns pointer for internal buffer in GPU memory.</div><div class="ttdef"><b>Definition:</b> device_array.hpp:68</div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a8503cd07a0b5cb1dbd71e2b0e83c9e63"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8503cd07a0b5cb1dbd71e2b0e83c9e63">&#9670;&nbsp;</a></span>copyTo()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1gpu_1_1_device_array.html">pcl::gpu::DeviceArray</a>&lt; T &gt;::copyTo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classpcl_1_1gpu_1_1_device_array.html">DeviceArray</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Performs data copying. If destination size differs it will be reallocated. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>destination container </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;{ <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#aac0093c66cf01a571cd16815e1189c84">DeviceMemory::copyTo</a>(other); }</div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_aac0093c66cf01a571cd16815e1189c84"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#aac0093c66cf01a571cd16815e1189c84">pcl::gpu::DeviceMemory::copyTo</a></div><div class="ttdeci">void copyTo(DeviceMemory &amp;other) const</div><div class="ttdoc">Performs data copying. If destination size differs it will be reallocated.</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a4299ebb216c82bc4d17d38b7d5999f67"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4299ebb216c82bc4d17d38b7d5999f67">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1gpu_1_1_device_array.html">pcl::gpu::DeviceArray</a>&lt; T &gt;::create </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates it with new size. If new and old sizes are equal it does nothing. <br  />
 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">size</td><td>elemens number </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;{ <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#a139fb950f850ab013e4cbd1d8c758b62">DeviceMemory::create</a>(<a class="code" href="classpcl_1_1gpu_1_1_device_array.html#acbd2988863a217bc7159391b9ad960e0">size</a> * elem_size); }</div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_a139fb950f850ab013e4cbd1d8c758b62"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#a139fb950f850ab013e4cbd1d8c758b62">pcl::gpu::DeviceMemory::create</a></div><div class="ttdeci">void create(size_t sizeBytes_arg)</div><div class="ttdoc">Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates...</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a5055031ead4bb8a87fc0b85fb104ed50"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5055031ead4bb8a87fc0b85fb104ed50">&#9670;&nbsp;</a></span>download() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<div class="memtemplate">
template&lt;class A &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1gpu_1_1_device_array.html">pcl::gpu::DeviceArray</a>&lt; T &gt;::download </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; T, A &gt; &amp;&#160;</td>
          <td class="paramname"><em>data</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Downloads data from internal buffer to CPU memory </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>host vector to download to <br  />
 </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;{ data.resize(<a class="code" href="classpcl_1_1gpu_1_1_device_array.html#acbd2988863a217bc7159391b9ad960e0">size</a>()); <span class="keywordflow">if</span> (!data.empty()) <a class="code" href="classpcl_1_1gpu_1_1_device_array.html#a86641905b12549130d92aaf90a85ac87">download</a>(&amp;data[0]); }</div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array_html_a86641905b12549130d92aaf90a85ac87"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array.html#a86641905b12549130d92aaf90a85ac87">pcl::gpu::DeviceArray::download</a></div><div class="ttdeci">void download(T *host_ptr) const</div><div class="ttdoc">Downloads data from internal buffer to CPU memory</div><div class="ttdef"><b>Definition:</b> device_array.hpp:59</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a86641905b12549130d92aaf90a85ac87"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a86641905b12549130d92aaf90a85ac87">&#9670;&nbsp;</a></span>download() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1gpu_1_1_device_array.html">pcl::gpu::DeviceArray</a>&lt; T &gt;::download </td>
          <td>(</td>
          <td class="paramtype">T *&#160;</td>
          <td class="paramname"><em>host_ptr</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Downloads data from internal buffer to CPU memory </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">host_ptr</td><td>pointer to buffer to download <br  />
 </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;{ <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#ad3dde5e26915ca28d8ce521edf211464">DeviceMemory::download</a>( host_ptr ); }</div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_ad3dde5e26915ca28d8ce521edf211464"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#ad3dde5e26915ca28d8ce521edf211464">pcl::gpu::DeviceMemory::download</a></div><div class="ttdeci">void download(void *host_ptr_arg) const</div><div class="ttdoc">Downloads data from internal buffer to CPU memory</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a8b5e94bc49303dc096acdf74d3b7059a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8b5e94bc49303dc096acdf74d3b7059a">&#9670;&nbsp;</a></span>swap()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1gpu_1_1_device_array.html">pcl::gpu::DeviceArray</a>&lt; T &gt;::swap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classpcl_1_1gpu_1_1_device_array.html">DeviceArray</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>other_arg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Performs swap of data pointed with another device array. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">other_arg</td><td>device array to swap with <br  />
 </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;{ <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#a70dc06ec14d680c4b97f71575ef6a963">DeviceMemory::swap</a>(other_arg); }</div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_a70dc06ec14d680c4b97f71575ef6a963"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#a70dc06ec14d680c4b97f71575ef6a963">pcl::gpu::DeviceMemory::swap</a></div><div class="ttdeci">void swap(DeviceMemory &amp;other_arg)</div><div class="ttdoc">Performs swap of data pointed with another device memory.</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="abc8b351d3617e83cfe081cfcddffab60"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abc8b351d3617e83cfe081cfcddffab60">&#9670;&nbsp;</a></span>upload() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<div class="memtemplate">
template&lt;class A &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1gpu_1_1_device_array.html">pcl::gpu::DeviceArray</a>&lt; T &gt;::upload </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; T, A &gt; &amp;&#160;</td>
          <td class="paramname"><em>data</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Uploads data to internal buffer in GPU memory. It calls <a class="el" href="classpcl_1_1gpu_1_1_device_array.html#a4299ebb216c82bc4d17d38b7d5999f67" title="Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates...">create()</a> inside to ensure that intenal buffer size is enough. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>host vector to upload from <br  />
 </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;{ <a class="code" href="classpcl_1_1gpu_1_1_device_array.html#a2c37bf39d8afe561cfb3fcb15fff0a82">upload</a>(&amp;data[0], data.size()); }</div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_array_html_a2c37bf39d8afe561cfb3fcb15fff0a82"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_array.html#a2c37bf39d8afe561cfb3fcb15fff0a82">pcl::gpu::DeviceArray::upload</a></div><div class="ttdeci">void upload(const T *host_ptr, size_t size)</div><div class="ttdoc">Uploads data to internal buffer in GPU memory. It calls create() inside to ensure that intenal buffer...</div><div class="ttdef"><b>Definition:</b> device_array.hpp:57</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a2c37bf39d8afe561cfb3fcb15fff0a82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2c37bf39d8afe561cfb3fcb15fff0a82">&#9670;&nbsp;</a></span>upload() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1gpu_1_1_device_array.html">pcl::gpu::DeviceArray</a>&lt; T &gt;::upload </td>
          <td>(</td>
          <td class="paramtype">const T *&#160;</td>
          <td class="paramname"><em>host_ptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Uploads data to internal buffer in GPU memory. It calls <a class="el" href="classpcl_1_1gpu_1_1_device_array.html#a4299ebb216c82bc4d17d38b7d5999f67" title="Allocates internal buffer in GPU memory. If internal buffer was created before the function recreates...">create()</a> inside to ensure that intenal buffer size is enough. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">host_ptr</td><td>pointer to buffer to upload <br  />
 </td></tr>
    <tr><td class="paramname">size</td><td>elemens number </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;{ <a class="code" href="classpcl_1_1gpu_1_1_device_memory.html#a5a6aec629c498c532916994f8188ad61">DeviceMemory::upload</a>(host_ptr, <a class="code" href="classpcl_1_1gpu_1_1_device_array.html#acbd2988863a217bc7159391b9ad960e0">size</a> * elem_size); }</div>
<div class="ttc" id="aclasspcl_1_1gpu_1_1_device_memory_html_a5a6aec629c498c532916994f8188ad61"><div class="ttname"><a href="classpcl_1_1gpu_1_1_device_memory.html#a5a6aec629c498c532916994f8188ad61">pcl::gpu::DeviceMemory::upload</a></div><div class="ttdeci">void upload(const void *host_ptr_arg, size_t sizeBytes_arg)</div><div class="ttdoc">Uploads data to internal buffer in GPU memory. It calls create() inside to ensure that intenal buffer...</div></div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>gpu/containers/include/pcl/gpu/containers/<a class="el" href="device__array_8h_source.html">device_array.h</a></li>
<li>gpu/containers/include/pcl/gpu/containers/impl/<a class="el" href="device__array_8hpp_source.html">device_array.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><b>gpu</b></li><li class="navelem"><a class="el" href="classpcl_1_1gpu_1_1_device_array.html">DeviceArray</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
